<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Math.ceil(x) 返回 x 的向上舍入值</title>
</head>

<body>
    <h1>JavaScript Math.ceil()</h1>
    <p>Math.ceil() 把数字上舍入为最接近的整数：</p>
    <p id="demo"></p>
    <script>
        document.getElementById("demo").innerHTML = Math.ceil(4.4);
    </script>
</body>

</html>